From: Emmanuele Bassi Date: Thu, 10 Aug 2017 22:27:56 +0000 (+0100) Subject: Define ST_COMPILATION in the St enumeration template X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~147 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=b0d21c3a37df21bf048c1d5f6af5fc6af976a1af;p=gnome-shell.git Define ST_COMPILATION in the St enumeration template In parallel builds we may end up with st-enum-types.c being built inside separate targets outside of src/st which may not have the ST_COMPILATION pre-processor symbol defined. For this reason, we need to define it ourselves in the source file, before including other headers, to avoid the single-include guard. --- diff --git a/src/st/st-enum-types.c.in b/src/st/st-enum-types.c.in index 738ac2769..bf0c54470 100644 --- a/src/st/st-enum-types.c.in +++ b/src/st/st-enum-types.c.in @@ -1,4 +1,7 @@ /*** BEGIN file-header ***/ +#ifndef ST_COMPILATION +#define ST_COMPILATION +#endif #include "st-enum-types.h" /*** END file-header ***/